package edu.whu.service;

import edu.whu.dao.BookDao;
import edu.whu.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserDao userDao;

    @Autowired
    BookDao bookDao;

    @Override
    public String register(String name) {
        userDao.save(name);
        bookDao.save();
        return name;
    }
}
